<?php
// DB Created by Rich L. a member in service in Northern Delaware.  Please feel free to share this code wherever it may be useful to alcholoics.  Should you have questons please contact me at sobernerd@gmail.com
//header items
$jQuery = true;
$tinyMCE = true;
$jQueryCookie = true;
$hoverIntent = true;
$Jededitable = true;
$sectionSort = true;
$googleAPI = false;
$calendar = false;
//end header items
$pageTitle = 'Soberpress - Administration - Home Modules';
require_once ('../../config/include_paths.php');
require_once('config.php');
require_once('functions.php');
require_once('dbconnect.php');	// database connect script.
$page_id = 1; //home=1 contacts=4
$table = 'modules'; //set appropriate table
$ifDeleteReturnTo = 'homeDashboard.php';
session_start();

if ($_SESSION['logged_in'] == 0) {
	require ('security_check.php');
} else {
require_once ('adminhead.php');
?>
<body onLoad="checkMenuSettings();">
<script language="javascript" type="text/javascript">
var table = '<?php echo $table ?>';
</script>
<div id="wrapper">
  <?php require_once ('adminHeader.php'); ?>
  <div class="clearfloat">&nbsp;</div>
  <div id="sidebar">
    <?php require_once ('adminNav.php'); ?>
  </div>
  <div id="main_content">
  <h2>Home Page Sections</h2>
  	<div id="sortable_content">
        <ul>
        <?php 
		$enabled = 1;
		require ('module_list.php'); ?>
        </ul>
        <div id="disabled_content">
            <ul>
            <?php 
            $enabled = 0;
            require ('module_list.php'); ?>
            </ul>
        </div>
    </div>  
  </div>
</div>
<?php mysql_close($conn);} ?>
</body>
</html>